package com.ruoyi.flow.flow.workflow;

import org.activiti.engine.query.Query;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by fenghuo on 2018/8/21.
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface OrderRef {
    /**
     * Activiti查询对象class，例如{@code HistoricProcessInstanceQuery.class}
     *
     * @return
     */
    Class[] queryClass() default {};

    /**
     * Activiti查询对象对应的排序方法名，例如{@code orderByProcessDefinitionId}
     *
     * @return
     */
    String[] methodName() default {};
}
